csscomputedvalues: plug a refleak
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 16 Oct 2012 15:49:57 +0000 (11:49 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 16 Oct 2012 17:07:50 +0000 (13:07 -0400)
_gtk_css_keyframes_compute() returns a reference to a GtkCssKeyframes,
and _gtk_css_animation_new() takes another reference.

gtk/gtkcsscomputedvalues.c

index 94115a587060224b52c1fe7b23608e3358d88616..339be02ad79f445ac0635961a4beb3146547b697 100644 (file)
@@ -499,6 +499,7 @@ gtk_css_computed_values_create_css_animations (GtkCssComputedValues    *values,
                                               _gtk_css_play_state_value_get (_gtk_css_array_value_get_nth (play_states, i)),
                                               _gtk_css_fill_mode_value_get (_gtk_css_array_value_get_nth (fill_modes, i)),
                                               _gtk_css_number_value_get (_gtk_css_array_value_get_nth (iteration_counts, i), 100));
+          _gtk_css_keyframes_unref (keyframes);
         }
       values->animations = g_slist_prepend (values->animations, animation);
     }